<ion-view view-title="{{data.group.group_name}}" class="chat">
	<!--一定要手动加导航栏-->
	<ion-nav-bar>
		<ion-nav-back-button>
		</ion-nav-back-button>
	</ion-nav-bar>
	<ion-content class="has-footer"  delegate-handle="main-content" id="abcde">
		<!--描述：下拉刷新-->
		<ion-refresher pulling-text="下拉更多记录..."  on-refresh="doRefresh()"></ion-refresher>
		<!--描述：聊天列表-->
		<div class="list-msg" id="cdef">
			<div class="msg-item" ng-repeat="chat in show_message" ng-class="chat.memberId==user_id?'self':'other'">
				<div class="timeDiv" ng-if="chat.type!='S'"><span>{{chat.sendTime}}</span></div>
				
				<div class="row padding-0">
					<!--头像-->
					<div class="logo" ng-if="chat.type!='S'">
						<img src="{{member_logo[chat.memberId].image_logo||'./img/default_logo.png'}}" />
					</div>
					
					<!--三角形-->
					<div class="triangleDiv" ng-class="{'redBag':chat.type=='U'&&chat.hongbao.length>0}">
						<div class="triangle"></div>
					</div>
					
					<!--内容：文字/图片-->
					<div class="msg-content" ng-if="chat.hongbao==undefined&&chat.type!='S'&&(chat.type=='U' || chat.type=='P')">
						<img ng-if="chat.type=='P'" src="{{chat.url}}" on-tap="showBigImg(chat.url)" />
						<span ng-if="chat.type=='U'" ng-bind-html="chat.content"></span>
					</div>
					
					<!--内容：红包-->
					<div class="msg-content" ng-if="chat.type=='U'&&chat.hongbao.length>0" style="background:#FF9A14;">
						<div class="row padding-0" on-tap="openModal(chat.memberId,chat.nickName,chat.hongbao[4],chat.hongbao[5],chat.hongbao[1])">
							<div class="momeDiv">
								<p>{{chat.hongbao[1]}}</p>
								<p class="chakan">领取红包</p>
							</div>
							<div class="redBagDiv">
								<img src="img/hongbao.png"/>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</ion-content>
	
	<!--底部-->
	<div class="biaoqing" ng-class="biaoClass">
		<div class="btnDiv">
			<img src="./img/guilin/other/icon_pic@2x.png" ng-click="doShowFile()"/>
			<input id="chat-upfilebuttons" type="file" multiple="multiple" accept="image/*" onchange="angular.element(this).scope().onupload(this)" style="display: none;" />
			
			<img src="./img/guilin/other/icon_hb@2x.png" ng-click="openModal_red()"/>
			
			<img src="./img/guilin/other/icon_xl@2x.png" ng-click="openMore()"/>
			
			<img src="./img/guilin/other/icon_qgg@2x.png" ng-click="openModal_notice()"/>
			
			<img src="./img/guilin/other/icon_qcy@2x.png" ng-click="openModal_member()"/>
		</div>
		
	    <ion-slide-box on-slide-changed="slideHasChanged($index)" pager-click="slideHasChanged()" delegate-handle="image-viewer">
            <ion-slide ng-repeat="emoji_list in emoji_map" style="height: 246px;">
                <ion-scroll zooming="false" direction="y" style="height: 226px;">
                    <span class="emoji" ng-repeat="eitem in emoji_list" ng-click="tapEmoji(eitem.unicode)"  ng-bind-html="eitem.imgsrc"></span>
                </ion-scroll>
            </ion-slide>
        </ion-slide-box>
	</div>
	
	<!--输入-->
	<div class="bar bar-footer inputBar" keyboard-attach>
		<form action="javascript:return false;" ng-submit="send_message()"><!--必须加anction属性，否则会ios上没有效果 -->
		 	<input id="html_msg" type="search" placeholder="请输入聊天内容" ng-model="input.message" />
		</form>
		<div class="submitBtn" on-tap="send_message()">发送</div>
	</div>
</ion-view>